var STORAGE_KEY = ''
export default {
    fetch(KEY) {
        STORAGE_KEY = KEY
        return JSON.parse(window.localStorage.getItem(STORAGE_KEY) || '{}')
    },
    save(items, KEY) {
        STORAGE_KEY = KEY
        window.localStorage.setItem(STORAGE_KEY, JSON.stringify(items))
    },
    deleteItem(KEY) {
        STORAGE_KEY = KEY
        localStorage.removeItem(STORAGE_KEY)
    }
}